﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace DJY.Domain.Entity.WorkFlow
{
    /// <summary>
    /// 流程实例 实体
    /// </summary>
    public class WFInstanceEntity
    {
        /// <summary>
        /// 实例ID
        /// </summary>
        [Key]
		[StringLength(36)]
    	public string Id
    	{
    		get;
    		set;
    	}
        
        /// <summary>
        /// 实例名称，比如（xxx请假申请）
        /// </summary>
		[StringLength(200)]
    	public string Name
    	{
    		get;
    		set;
    	}
        
        /// <summary>
        /// 流程ID
        /// </summary>
		[StringLength(36)]
    	public string WFID
    	{
    		get;
    		set;
    	}
        
        /// <summary>
        /// 流程版本
        /// </summary>
    	public int Version
    	{
    		get;
    		set;
    	}
        
        /// <summary>
        /// 删除标记
        /// </summary>
    	public bool F_DeleteMark
    	{
    		get;
    		set;
    	}
        
        /// <summary>
        /// 新增时间
        /// </summary>
    	public DateTime F_CreateTime
    	{
    		get;
    		set;
    	}
        
        /// <summary>
        /// 新增人
        /// </summary>
		[StringLength(36)]
    	public string F_CreateUser
    	{
    		get;
    		set;
    	}
        
        /// <summary>
        /// 最后修改时间
        /// </summary>
    	public DateTime? F_LastUpdateTime
    	{
    		get;
    		set;
    	}
        
        /// <summary>
        /// 最后修改人
        /// </summary>
		[StringLength(36)]
    	public string F_LastUpdateUser
    	{
    		get;
    		set;
    	}
        
        /// <summary>
        /// 备注
        /// </summary>
		[StringLength(200)]
    	public string Remark
    	{
    		get;
    		set;
    	}
        
        /// <summary>
        /// 最新节点ID，空标识流程完成，多个，分隔
        /// </summary>
		[StringLength(2000)]
    	public string NodeId
    	{
    		get;
    		set;
    	}
        
    }
}
